#include<iostream>
#include"tcp_server.hpp"
static void usag(std::string proc)
{
    std::cout<<"\nUsage: "<<proc<<" port\n"<<std::endl;
}
int main(int argc,char* argv[])
{
    if(argc!=2)
    {
        usag(argv[0]);
        exit(1);
    }
    uint16_t server_port = atoi(argv[1]);
    std::unique_ptr<TcpServer> svr(new TcpServer(server_port));
    svr->initServer();
    svr->Start();
    return 0;
}